package com.smarthealthring.mm.ble;

import java.util.List;

/**
 * Created by joash on 2018/5/21.
 *
 * 同步数据的bean 步数 心率 睡眠 电量 固件版本
 */

public class SyncDataBean {

    List<Step> walk;
    List<HR> hr;
    List<Sleep> sleep;
    int power;
    String fwver;

    public SyncDataBean(List<Step> walk, List<HR> hr, List<Sleep> sleep, int power, String fwver) {
        this.walk = walk;
        this.hr = hr;
        this.sleep = sleep;
        this.power = power;
        this.fwver = fwver;
    }

    public int getPower() {
        return power;
    }

    public String getFwver() {
        return fwver;
    }

    public void setFwver(String fwver) {
        this.fwver = fwver;
    }

    public void setPower(int power) {
        this.power = power;
    }

    public List<Step> getSteps() {
        return walk;
    }

    public void setSteps(List<Step> walk) {
        this.walk = walk;
    }

    public List<HR> getHrs() {
        return hr;
    }

    public void setHrs(List<HR> hr) {
        this.hr = hr;
    }

    public List<Sleep> getSleeps() {
        return sleep;
    }

    public void setSleeps(List<Sleep> sleep) {
        this.sleep = sleep;
    }

    public static class Step{
        public String getStatus() {
            return status;
        }

        public void setStatus(String status) {
            this.status = status;
        }

        public Step(long time, long walk, String status) {
            this.time = time;
            this.walkvalue = walk;
            this.status = status;
        }

        public long getTimeStamp() {
            return time;
        }

        public void setTimeStamp(long time) {
            this.time = time;
        }

        public long getSteps() {
            return walkvalue;
        }

        public void setSteps(long walk) {
            this.walkvalue = walk;
        }

        long time;
        long walkvalue;
        String status;
    }

    public static class HR{

        public HR(long time, int hr) {
            this.time = time;
            this.hrvalue = hr;
        }

        public long getTimeStamp() {
            return time;
        }

        public void setTimeStamp(long time) {
            this.time = time;
        }

        public int getHr() {
            return hrvalue;
        }

        public void setHr(int hr) {
            this.hrvalue = hr;
        }

        long time;
        int hrvalue;
    }

    public static class Sleep{

        public Sleep(long time, String status) {
            this.time = time;
            this.status = status;
        }

        public String getStatus() {
            return status;
        }

        public void setStatus(String status) {
            this.status = status;
        }

        public long getTimeStamp() {
            return time;
        }

        public void setTimeStamp(long time) {
            this.time = time;
        }

        long time;
        String status;
    }
}
